// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "ds/_borders.scss" as *;
@use "ds/_sizes.scss" as *;
@use "ds/colors.scss" as *;
@use "ds/typography.scss" as t;

.frame-flow-badge-wrapper {
  --frame-flow-badge-background-color: var(--color-background-tertiary);
  --frame-flow-badge-background-color-hover: var(--color-background-quaternary);
  --frame-flow-badge-foreground-color: var(--color-foreground-secondary);
  --frame-flow-badge-foreground-color-hover: var(--color-accent-primary);

  cursor: pointer;
  display: flex;
}

.frame-flow-badge-content {
  @include t.use-typography("body-small");
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  border-radius: $br-6;
  padding-inline-start: var(--sp-xs);
  padding-inline-end: var(--sp-s);
  height: var(--sp-xxl);
  background-color: var(--frame-flow-badge-background-color);
  color: var(--frame-flow-badge-foreground-color);

  &:hover,
  &.selected {
    --frame-flow-badge-foreground-color: var(--frame-flow-badge-foreground-color-hover);
    --frame-flow-badge-background-color: var(--frame-flow-badge-background-color-hover);
  }
}

.frame-title-wrapper {
  --frame-title-input-border-color-focus: var(--color-accent-primary);

  pointer-events: none;
}

.frame-title-label {
  @include t.use-typography("body-small");
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: fit-content;
  pointer-events: all;
}

.frame-title-input {
  @include t.use-typography("body-small");
  flex-grow: 1;
  width: 100%;
  max-width: initial;
  background: none;
  outline: none;
  height: var(--sp-xl);
  padding-inline-start: var(--sp-s);
  border: $b-1 solid var(--frame-title-input-border-color-focus);
}

.button-add-wrapper {
  --button-add-background-color: var(--color-accent-action);
  --button-add-background-color-hover: var(--color-accent-action-hover);
  --button-add-icon-color: var(--color-static-white);

  cursor: pointer;
  fill: var(--button-add-background-color);
  &:hover {
    --button-add-background-color: var(--button-add-background-color-hover);
  }
}

.button-add-icon {
  stroke: var(--button-add-icon-color);
}
